<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/2/7
 * Time: 23:38
 */
! defined('SUCCESS_CODE') && define('SUCCESS_CODE', 1);
! defined('FAILED_CODE') && define('FAILED_CODE', 0);

// 明细出入账 1.出账 2.入账
! defined('DETAIL_TYPE_OUT') && define('DETAIL_TYPE_OUT', 1);
! defined('DETAIL_TYPE_IN') && define('DETAIL_TYPE_IN', 2);

// 明细结算类型
// 1001.交易订单结算入账
// 1002.交易订单交易手续费出账
// 1003.保证金周期冻结出账
// 1004.保证金周期冻结入账
! defined('TYPE_TRADE_ORDER_CASH_IN') && define('TYPE_TRADE_ORDER_CASH_IN', 1001);
! defined('TYPE_TRADE_ORDER_CASH_SERVICE_FEE_OUT') && define('TYPE_TRADE_ORDER_CASH_SERVICE_FEE_OUT', 1002);
! defined('TYPE_TRADE_ORDER_CASH_BOND_AMOUNT_OUT') && define('TYPE_TRADE_ORDER_CASH_BOND_AMOUNT_OUT', 1003);
! defined('TYPE_TRADE_ORDER_BOND_FROZEN_CYCLE_IN') && define('TYPE_TRADE_ORDER_BOND_FROZEN_CYCLE_IN', 1004);
! defined('TYPE_TRADE_ORDER_CASH_THREE_D_JUDGE_FEE_OUT') && define('TYPE_TRADE_ORDER_CASH_THREE_D_JUDGE_FEE_OUT', 1005);
! defined('TYPE_TRADE_ORDER_CASH_THREE_D_FEE_FEE_OUT') && define('TYPE_TRADE_ORDER_CASH_THREE_D_FEE_FEE_OUT', 1006);

! defined('TYPE_TRADE_ORDER_REFUND_CASH_OUT') && define('TYPE_TRADE_ORDER_REFUND_CASH_OUT', 2001);
! defined('TYPE_TRADE_ORDER_REFUND_FROZEN_IN') && define('TYPE_TRADE_ORDER_REFUND_FROZEN_IN', 2002);
! defined('TYPE_TRADE_ORDER_REFUND_CONFIRM_CASH_IN') && define('TYPE_TRADE_ORDER_REFUND_CONFIRM_CASH_IN', 2003);
! defined('TYPE_TRADE_ORDER_REFUND_CONFIRM_FROZEN_OUT') && define('TYPE_TRADE_ORDER_REFUND_CONFIRM_FROZEN_OUT', 2004);
! defined('TYPE_TRADE_ORDER_REFUND_CONFIRM_CASH_OUT') && define('TYPE_TRADE_ORDER_REFUND_CONFIRM_CASH_OUT', 2005);
! defined('TYPE_TRADE_ORDER_REFUND_CONFIRM_REFUND_FEE_OUT') && define('TYPE_TRADE_ORDER_REFUND_CONFIRM_REFUND_FEE_OUT', 2006);

! defined('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CASH_OUT') && define('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CASH_OUT', 3001);
! defined('TYPE_TRADE_ORDER_DIS_LOOK_INTO_FROZEN_IN') && define('TYPE_TRADE_ORDER_DIS_LOOK_INTO_FROZEN_IN', 3002);
! defined('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_CASH_IN') && define('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_CASH_IN', 3003);
! defined('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_FROZEN_OUT') && define('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_FROZEN_OUT', 3004);
! defined('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_CASH_OUT') && define('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_CASH_OUT', 3005);
! defined('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_DIS_FEE_OUT') && define('TYPE_TRADE_ORDER_DIS_LOOK_INTO_CONFIRM_DIS_FEE_OUT', 3006);

! defined('TYPE_TRADE_ORDER_FROZEN_CASH_OUT') && define('TYPE_TRADE_ORDER_FROZEN_CASH_OUT', 4001);
! defined('TYPE_TRADE_ORDER_FROZEN_FROZEN_IN') && define('TYPE_TRADE_ORDER_FROZEN_FROZEN_IN', 4002);
! defined('TYPE_TRADE_ORDER_FROZEN_CONFIRM_CASH_IN') && define('TYPE_TRADE_ORDER_FROZEN_CONFIRM_CASH_IN', 4003);
! defined('TYPE_TRADE_ORDER_FROZEN_CONFIRM_FROZEN_OUT') && define('TYPE_TRADE_ORDER_FROZEN_CONFIRM_FROZEN_OUT', 4004);
! defined('TYPE_TRADE_ORDER_FROZEN_CONFIRM_CASH_OUT') && define('TYPE_TRADE_ORDER_FROZEN_CONFIRM_CASH_OUT', 4005);
! defined('TYPE_TRADE_ORDER_FROZEN_CONFIRM_FROZEN_IN') && define('TYPE_TRADE_ORDER_FROZEN_CONFIRM_FROZEN_IN', 4006);

! defined('TYPE_TRADE_ORDER_THAW_CONFIRM_CASH_IN') && define('TYPE_TRADE_ORDER_THAW_CONFIRM_CASH_IN', 5001);
! defined('TYPE_TRADE_ORDER_THAW_CONFIRM_FROZEN_OUT') && define('TYPE_TRADE_ORDER_THAW_CONFIRM_FROZEN_OUT', 5002);

! defined('TYPE_TRADE_FAIL_CASH_OUT') && define('TYPE_TRADE_FAIL_CASH_OUT', 6001);

! defined('TYPE_BOND_THAW_FROZEN_OUT') && define('TYPE_BOND_THAW_FROZEN_OUT', 7001);
! defined('TYPE_BOND_THAW_CASH_IN') && define('TYPE_BOND_THAW_CASH_IN', 7002);

! defined('TYPE_EVENT_CASH_OUT') && define('TYPE_EVENT_CASH_OUT', 8001);
! defined('TYPE_EVENT_REVIEW_IN') && define('TYPE_EVENT_REVIEW_IN', 8002);
! defined('TYPE_EVENT_REVIEW_OUT') && define('TYPE_EVENT_REVIEW_OUT', 8003);
! defined('TYPE_EVENT_CASH_IN') && define('TYPE_EVENT_CASH_IN', 8004);
! defined('TYPE_EVENT_FROZEN_OUT') && define('TYPE_EVENT_FROZEN_OUT', 8005);
! defined('TYPE_EVENT_FROZEN_IN') && define('TYPE_EVENT_FROZEN_IN', 8006);
! defined('TYPE_EVENT_CONFIRM_REVIEW_OUT') && define('TYPE_EVENT_CONFIRM_REVIEW_OUT', 8007);
! defined('TYPE_EVENT_CONFIRM_CASH_OUT') && define('TYPE_EVENT_CONFIRM_CASH_OUT', 8008);
! defined('TYPE_EVENT_CONFIRM_FROZEN_IN') && define('TYPE_EVENT_CONFIRM_FROZEN_IN', 8009);
! defined('TYPE_EVENT_CONFIRM_FROZEN_OUT') && define('TYPE_EVENT_CONFIRM_FROZEN_OUT', 8010);
! defined('TYPE_EVENT_CONFIRM_CASH_IN') && define('TYPE_EVENT_CONFIRM_CASH_IN', 8011);

! defined('TYPE_WITHDRAW_CASH_OUT') && define('TYPE_WITHDRAW_CASH_OUT', 9001);
! defined('TYPE_WITHDRAW_FROZEN_IN') && define('TYPE_WITHDRAW_FROZEN_IN', 9002);
! defined('TYPE_WITHDRAW_CONFIRM_CASH_IN') && define('TYPE_WITHDRAW_CONFIRM_CASH_IN', 9003);
! defined('TYPE_WITHDRAW_CONFIRM_FROZEN_OUT') && define('TYPE_WITHDRAW_CONFIRM_FROZEN_OUT', 9004);
! defined('TYPE_WITHDRAW_CONFIRM_CASH_OUT') && define('TYPE_WITHDRAW_CONFIRM_CASH_OUT', 9005);
! defined('TYPE_WITHDRAW_CONFIRM_WITHDRAW_PER_FEE_OUT') && define('TYPE_WITHDRAW_CONFIRM_WITHDRAW_PER_FEE_OUT', 9006);

! defined('TYPE_TRANS_CASH_OUT') && define('TYPE_TRANS_CASH_OUT', 1101);
! defined('TYPE_TRANS_FROZEN_IN') && define('TYPE_TRANS_FROZEN_IN', 1102);
! defined('TYPE_TRANS_CONFIRM_CASH_IN') && define('TYPE_TRANS_CONFIRM_CASH_IN', 1103);
! defined('TYPE_TRANS_CONFIRM_FROZEN_OUT') && define('TYPE_TRANS_CONFIRM_FROZEN_OUT', 1104);
! defined('TYPE_TRANS_CONFIRM_CASH_OUT') && define('TYPE_TRANS_CONFIRM_CASH_OUT', 1105);
! defined('TYPE_TRANS_CONFIRM_TRANS_PER_FEE_OUT') && define('TYPE_TRANS_CONFIRM_TRANS_PER_FEE_OUT', 1106);
! defined('TYPE_TRANS_CONFIRM_TARGET_CASH_IN') && define('TYPE_TRANS_CONFIRM_TARGET_CASH_IN', 1107);

! defined('TYPE_DIS_FEE_OUT') && define('TYPE_DIS_FEE_OUT', 1201);

// 主表账户类型 1.交易可提现账户 2.交易冻结账户 3.保证金冻结账户 4.事件冻结账户 5.事件待审账户
! defined('ACCOUNT_TYPE_CASH') && define('ACCOUNT_TYPE_CASH', 1);
! defined('ACCOUNT_TYPE_CASH_FROZEN') && define('ACCOUNT_TYPE_CASH_FROZEN', 2);
! defined('ACCOUNT_TYPE_BOND_FROZEN') && define('ACCOUNT_TYPE_BOND_FROZEN', 3);
! defined('ACCOUNT_TYPE_EVENT_FROZEN') && define('ACCOUNT_TYPE_EVENT_FROZEN', 4);
! defined('ACCOUNT_TYPE_EVENT_REVIEW') && define('ACCOUNT_TYPE_EVENT_REVIEW', 5);


// 主表结算类型
// 1001.交易成功结算
// 1002.交易成功保证金冻结结算
// 2001.交易退款结算 出账
// 2002.交易退款结算
// 3001.交易拒付结算
// 4001.交易冻结结算
// 5001.交易解冻结算
// 6001.交易失败
// 7001.保证金解冻结算
// 8001.事件订单结算
// 9001.提现单结算
// 1101.转账单结算
! defined('ACCESS_TYPE_TRADE_ORDER') && define('ACCESS_TYPE_TRADE_ORDER', 1001);
! defined('ACCESS_TYPE_TRADE_ORDER_THAW_BOND') && define('ACCESS_TYPE_TRADE_ORDER_THAW_BOND', 1002);
! defined('ACCESS_TYPE_TRADE_ORDER_REFUND') && define('ACCESS_TYPE_TRADE_ORDER_REFUND', 2001);
! defined('ACCESS_TYPE_TRADE_ORDER_DIS_LOOK_INTO') && define('ACCESS_TYPE_TRADE_ORDER_DIS_LOOK_INTO', 3001);
! defined('ACCESS_TYPE_TRADE_ORDER_FROZEN') && define('ACCESS_TYPE_TRADE_ORDER_FROZEN', 4001);
! defined('ACCESS_TYPE_TRADE_ORDER_THAW') && define('ACCESS_TYPE_TRADE_ORDER_THAW', 5001);
! defined('ACCESS_TYPE_TRADE_FAIL') && define('ACCESS_TYPE_TRADE_FAIL', 6001);
! defined('ACCESS_TYPE_BOND_THAW') && define('ACCESS_TYPE_BOND_THAW', 7001);
! defined('ACCESS_TYPE_EVENT_ORDER_FROZEN') && define('ACCESS_TYPE_EVENT_ORDER_FROZEN', 8001);
! defined('ACCESS_TYPE_EVENT_ORDER_DEDUCT') && define('ACCESS_TYPE_EVENT_ORDER_DEDUCT', 8002);
! defined('ACCESS_TYPE_EVENT_ORDER_RECHARGE') && define('ACCESS_TYPE_EVENT_ORDER_RECHARGE', 8003);
! defined('ACCESS_TYPE_EVENT_ORDER_THAW') && define('ACCESS_TYPE_EVENT_ORDER_THAW', 8004);
! defined('ACCESS_TYPE_WITHDRAW') && define('ACCESS_TYPE_WITHDRAW', 9001);
! defined('ACCESS_TYPE_TRANS') && define('ACCESS_TYPE_TRANS', 1101);
! defined('ACCESS_TYPE_DIS_FEE') && define('ACCESS_TYPE_DIS_FEE', 1201);